<?php
$this->pageTitle=Yii::app()->name;

if (!Yii::app()->user->isGuest)
{
    echo $this->renderPartial('_home');
}
else
{
    echo $this->render('login');
}
?>